package com.example.chasshelper.model;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

public class Teacher implements Serializable {
    private Integer teacherId;//id

    private String teacherAccount;//账号

    private String teacherPassword;//密码

    private String teacherPhone;//手机号

    private String teacherName;//用户名

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public String getTeacherAccount() {
        return teacherAccount;
    }

    public void setTeacherAccount(String teacherAccount) {
        this.teacherAccount = teacherAccount;
    }

    public String getTeacherPassword() {
        return teacherPassword;
    }

    public void setTeacherPassword(String teacherPassword) {
        this.teacherPassword = teacherPassword;
    }

    public String getTeacherPhone() {
        return teacherPhone;
    }

    public void setTeacherPhone(String teacherPhone) {
        this.teacherPhone = teacherPhone;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teacherId=" + teacherId +
                ", teacherAccount='" + teacherAccount + '\'' +
                ", teacherPassword='" + teacherPassword + '\'' +
                ", teacherPhone='" + teacherPhone + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Teacher)) return false;
        Teacher teacher = (Teacher) o;
        return Objects.equals(teacherId, teacher.teacherId) &&
                Objects.equals(teacherAccount, teacher.teacherAccount) &&
                Objects.equals(teacherPassword, teacher.teacherPassword) &&
                Objects.equals(teacherPhone, teacher.teacherPhone);
    }

    @Override
    public int hashCode() {
        return Objects.hash(teacherId, teacherAccount, teacherPassword, teacherPhone);
    }
}